package Wormish.agiletre.se;

import Wormish.agiletre.se.Math.Vec2f;
import android.graphics.Canvas;
import android.graphics.Matrix;

public class Camera
{
	public Vec2f Position = Vec2f.Zero;
	
	
	public void Update(Canvas canvas, int posX, int posY, float scaleX, float scaleY)
	{
		Position.setValues(posX, posY);
		
    	Matrix world = new Matrix();
    	world.postTranslate(-Position.getX(), -Position.getY());
    	world.postScale(scaleX, scaleY);
    	canvas.setMatrix(world);
	}
}
